Make sure that all result coumns in a resultMap are in the field list of select statement.